package com.gree.flowable.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gree.flowable.app.pojo.model.QueryApplyMO;
import com.gree.flowable.app.pojo.vo.SolvedTaskVO;
import com.gree.flowable.app.pojo.vo.TaskVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface FlowableTaskMapper extends BaseMapper<TaskVO> {
    /**
     * @Title: 查询代办任务
     * @return
     */
    IPage<TaskVO> getApplyingTasks(Page<?> page, @Param("params") QueryApplyMO params);

    /**
     * @Title: 查询我的已办工作
     * @param page
     * @return
     */
    IPage<SolvedTaskVO> getApplyedTasks(Page<?> page, @Param("params") QueryApplyMO params);

}
